import org.eclipse.core.runtime.Platform

def expando = new groovy.util.Expando()

// start method is called by the ScriptBundleActivator facade class to enable the 
// activation using a groovy script 
expando.start = { bundleContext ->
   def registry = Platform.getPluginRegistry()
   def extensionPoint = registry.getExtensionPoint("org.eclipse.soc.scripting.contributor.extpoints")
   def extensions = extensionPoint.getExtensions() 
   extensions.each( { extension ->  
     extension.getConfigurationElements().each({
    	 element -> def object = element.createExecutableExtension("class")
    	 //do something with the object
     }) 
   } )   
}

expando